<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.esaclient"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="17" />

    <uses-permission android:name="android.permission.INTERNET" >
    </uses-permission>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <!-- Network State Permissions -->
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.example.esaclient.LoginActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.example.esaclient.NewAccountActivity"
            android:label="@string/title_activity_new_account"
            android:screenOrientation="portrait" >
        </activity>
        <activity
            android:name="com.example.esaclient.AddSocialActivity"
            android:label="@string/title_activity_twitter_login"
            android:screenOrientation="portrait" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.example.esaclient.TimelineActivity" >
            </meta-data>

            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data
                    android:host="callback"
                    android:scheme="esaclient" >
                </data>
            </intent-filter>
        </activity>
        <activity
            android:name="com.example.esaclient.TimelineActivity"
            android:label="@string/title_activity_timeline"
            android:screenOrientation="portrait" >
        </activity>
        <activity
            android:name="com.example.esaclient.SettingsActivity"
            android:label="@string/title_activity_settings"
            android:screenOrientation="portrait" >
        </activity>

        <meta-data
            android:name="com.facebook.sdk.ApplicationId"
            android:value="@string/app_id" />

        <activity
            android:name="com.example.esaclient.FBLoginActivity"
            android:label="@string/title_activity_fblogin" >
        </activity>
        <activity android:name="com.facebook.LoginActivity" />
        <activity
            android:name="com.example.esaclient.SearchActivity"
            android:label="@string/title_activity_search" >
        </activity>
        <activity
            android:name="com.example.esaclient.CrossPostActivity"
            android:label="@string/title_activity_cross_post" >
        </activity>
        <activity
            android:name="com.example.esaclient.InsightsActivity"
            android:label="@string/title_activity_insights"
            android:screenOrientation="landscape"  >
        </activity>
    </application>

</manifest>